#ifndef CUTILS_H
#define CUTILS_H

#include <windows.h>
#include <string>
#include <stdio.h>
#include <vector>
#include <dirent.h>
#include <sys/stat.h>

//#include <regex.h>

using namespace std;


class cUtils
{
    public:
        /** Default constructor */
        cUtils();
        /** Default destructor */
        ~cUtils();

        static string           adapterCheminRepertoire(const char * repertoire);
        static string           base64_encode( char * bytes_to_encode);
        static bool             ecrireRegistreChaine(HKEY cle,string chemin,string nom,string valeur);
        static int              ExpressionReguliere(string regExp,string chaineAVerifier);
        static string           getApplicationPath();
        static bool             is_number(const string& s);
        static vector<string>   listerFichiers(string repertoire);
        static void             listerPortsSeries(vector<string>&retour);
        static vector<string>   listerRepertoires(string repertoire);
        static bool             RessourceToFile(unsigned int idressource,wstring chemin);

    protected:
    private:
};

#endif // CUTILS_H
